package com.xonro.common.histrans.base.ctx;

import com.actionsoft.bpms.commons.database.RowMap;
import com.xonro.common.histrans.base.model.HistoryTransLogModel;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: zhuhj
 * @Description: TODO
 * @Date: 2023/12/28 16:58
 * @Version: 1.0
 */
public abstract class HistoryOneTransContext {
    protected ProcessCreateContext processCreateContext = new ProcessCreateContext();
    private RowMap mainData;
    private HistoryTransLogModel historyTransLogModel;
    private List<HistoryTransLogModel> historyTransLogModelList = new ArrayList<>();
    private List<FileTransData> fileTransDatas = new ArrayList<>();

    //drp1.0为1，drp2.0为2
    private String type="1";

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public ProcessCreateContext getProcessCreateContext() {
        return processCreateContext;
    }

    public void setProcessCreateContext(ProcessCreateContext processCreateContext) {
        this.processCreateContext = processCreateContext;
    }

    public RowMap getMainData() {
        return mainData;
    }

    public void setMainData(RowMap mainData) {
        this.mainData = mainData;
    }

    public HistoryTransLogModel getHistoryTransLogModel() {
        return historyTransLogModel;
    }

    public void setHistoryTransLogModel(HistoryTransLogModel historyTransLogModel) {
        this.historyTransLogModel = historyTransLogModel;
    }

    public List<HistoryTransLogModel> getHistoryTransLogModelList() {
        return historyTransLogModelList;
    }

    public void setHistoryTransLogModelList(List<HistoryTransLogModel> historyTransLogModelList) {
        this.historyTransLogModelList = historyTransLogModelList;
    }

    public List<FileTransData> getFileTransDatas() {
        return fileTransDatas;
    }

    public void setFileTransDatas(List<FileTransData> fileTransDatas) {
        this.fileTransDatas = fileTransDatas;
    }


    public void setHistoryTransLogModelList(HistoryTransLogModel historyTransLogModel){
        this.historyTransLogModelList.add(historyTransLogModel);
    }
}
